.headerSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.searchForm {
  margin-bottom: 16px;
  padding: 24px;
  background: #fafafa;
  border-radius: 2px;
}

.modalFooter {
  text-align: right;
  margin-bottom: 0;
}

.toolbarContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: #fafafa;
  padding: 24px;
  border-radius: 2px;
}


// 图片预览相关样式
.imageListContainer {
  width: 400px;
  
  .imageList {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .imageItem {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    .pageInfo {
      margin: 0 8px;
    }
  }
}

.previewMask {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

// 表单上传组件样式
.dynamicForm {
  .imageUpload {
    :global {
      .ant-upload-list-picture-card {
        display: grid;
        grid-template-columns: repeat(auto-fill, 104px);
        gap: 8px;
      }
      
      .ant-upload-list-picture-card-container {
        width: 104px !important;
        height: 104px !important;
        margin: 0 !important;
      }

      .ant-upload.ant-upload-select {
        width: 104px !important;
        height: 104px !important;
        margin: 0 !important;
      }
    }
  }

  .coverUpload {
    :global {
      .ant-upload-list-picture-card-container {
        width: 200px !important;
        height: 200px !important;
        margin: 0 !important;
      }
      .ant-upload.ant-upload-select {
        width: 200px !important;
        height: 200px !important;
        margin: 0 !important;
      }
    }
  }
}

.videoList {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;

  .videoItem {
    position: relative;
    width: 100px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;

    &:hover {
      .videoMask {
        opacity: 1;
      }
    }

    .videoMask {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #fff;
      opacity: 0;
      transition: opacity 0.3s;

      .anticon {
        font-size: 24px;
        margin-bottom: 4px;
      }

      span {
        font-size: 12px;
      }
    }
  }
}

.videoTag {
  cursor: pointer;
  transition: all 0.3s;
  
  &:hover {
    transform: scale(1.05);
  }
}

.videoPopoverList {
  width: 280px;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .videoItem {
    display: grid;
    grid-template-columns: 12px 1fr;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #e6f4ff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;

    .anticon {
      font-size: 20px;
      color: #1677ff;
      display: flex;
      justify-content: center;
    }

    span {
      color: #1677ff;
      opacity: 0.85;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &:hover {
      background: #bae0ff;
    }
  }
}

// 美化 Popover 样式
:global {
  .ant-popover-inner {
    border-radius: 8px;
    
    .ant-popover-title {
      padding: 12px 16px;
      border-bottom: 1px solid #f0f0f0;
    }
    
    .ant-popover-inner-content {
      padding: 12px;
    }
  }
} 